/*
  Copyright 2009 Smart Enterprise Solution Corp.
  Email: contact@ses.vn - Website: http://www.ses.vn
  KimNgan Project.
*/
using System;
using System.Data;
using System.Configuration;
using System.Collections;

using SES.CMS.DAL;
using SES.CMS.DO;
/// <summary>
/// Summary description for cmsImagesBL
/// </summary>
namespace SES.CMS.BL
{
    public class cmsImagesBL
    {
        #region Private Variables
        cmsImagesDAL objcmsImagesDAL;
        #endregion

        #region Public Constructors
        public cmsImagesBL()
        {
            //
            // TODO: Add constructor logic here
            //
            objcmsImagesDAL = new cmsImagesDAL();
        }
        #endregion

        #region Public Methods
        public int Insert(cmsImagesDO objcmsImagesDO)
        {
            return objcmsImagesDAL.Insert(objcmsImagesDO);
        }

        public int Update(cmsImagesDO objcmsImagesDO)
        {
            return objcmsImagesDAL.Update(objcmsImagesDO);

        }

        public int Delete(cmsImagesDO objcmsImagesDO)
        {
            return objcmsImagesDAL.Delete(objcmsImagesDO);

        }

        public int DeleteAll()
        {
            return objcmsImagesDAL.DeleteAll();
        }

        public cmsImagesDO Select(cmsImagesDO objcmsImagesDO)
        {
            return objcmsImagesDAL.Select(objcmsImagesDO);
        }

        public ArrayList SelectAll1()
        {
            return objcmsImagesDAL.SelectAll1();
        }

        public DataTable SelectAll()
        {
            return objcmsImagesDAL.SelectAll();
        }



        #endregion

        public DataTable SelectByCategoryID(int p)
        {
            return objcmsImagesDAL.SelectByCategoryID(p);
        }
        public DataTable SelectByAlbumID(int p)
        {
            return objcmsImagesDAL.SelectByAlbumID(p);
        }
        public DataTable SelectByIsHomePage(bool IsHomePage, int top)
        {
            return objcmsImagesDAL.SelectByIsHomePage(IsHomePage, top);
        }
        public int DeleteByalbum(int PLID)
        {
            return objcmsImagesDAL.DeleteByalbum(PLID);
        }

        public void UpdateAlt(int stt, int[] spid, string[] alt)
        {
            objcmsImagesDAL.UpdateAlt(stt, spid, alt);
        }
        public DataTable SelectBySlideID(int slideID)
        {
            return objcmsImagesDAL.SelectBySlideID(slideID);
        }
        public DataTable SelectByArticleID(int articleID)
        {
            return objcmsImagesDAL.SelectByArticleID(articleID);
        }
        public DataTable SelectByPK(int ImageID)
        {
            return objcmsImagesDAL.SelectByPK(ImageID);
        }

        public DataTable SelectTypeToHomePage(Boolean type, Boolean isHomepage, int top)
        {
            return objcmsImagesDAL.SelectTypeToHomePage(type, isHomepage, top);
        }

        public DataTable SelectAllAlbum()
        {
            return objcmsImagesDAL.SelectAllAlbum();
        }

    }

}
